<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>node</title>
	<script>
		
		window.onload= function(){
			link = document.getElementById('link');
			title = document.getElementById('title');
			// link.innerHTML = "<a herf='http://www.baidu.com'>学并思</a>";
			
			a = document.createElement('a');
			a.href = "http://www.baidu.com";
			a.name = "xuebingsi";
			a.innerHTML="学并思";

			span1 = title.cloneNode(true);

			link.appendChild(span1);
			// link.insertBefore(a,title);
			// link.removeChild(title)
			// link.replaceChild(a,title)


		}


	</script>
</head>
<body>
	<p id="link">
		<span id="title">学并思</span>
	</p>
	
</body>
</html>